<%@ include file="/common/taglibs.jsp"%>

<title><fmt:message key="sysAnnounceDetail.title"/></title>
<content tag="heading"><fmt:message key="sysAnnounceDetail.heading"/></content>

<html:form action="saveSysAnnounce" method="post" styleId="sysAnnounceForm" onsubmit="return validateSysAnnounceForm(this)">
<ul>

<html:hidden property="id"/>
    <li>
        <generalsetting:label styleClass="desc" key="sysAnnounceForm.sysId"/>
        <!-- html:errors property="sysId"/>
        <!-- html:text property="sysId" styleId="sysId" styleClass="text medium"/-->

            <html:select property="sysId" onchange="">
            	<html:options collection="systems" property="sysId" labelProperty="sysName"/>
            </html:select>
    </li>

    <li>
        <generalsetting:label styleClass="desc" key="sysAnnounceForm.deptId"/>
        <!-- html:errors property="deptId"/-->
        <!-- html:text property="deptId" styleId="deptId" styleClass="text medium"/-->
            <html:select property="deptId" onchange="sysAnnounceForm.deptName.value=this.options[this.selectedIndex].text">
            	<html:options collection="departments" property="deptId" labelProperty="deptName"/>
            </html:select>
            <html:hidden property="deptName" styleId="deptName" styleClass="text medium"/>
    </li>

    <li>
        <generalsetting:label styleClass="desc" key="sysAnnounceForm.marquee"/>
        <html:errors property="marquee"/>
        <html:text property="marquee" styleId="marquee" styleClass="text medium"/>

    </li>

    <li>
        <generalsetting:label styleClass="desc" key="sysAnnounceForm.empId"/>
        <html:errors property="empId"/>
        <html:text property="empId" styleId="empId" styleClass="text medium"/>

    </li>

    <li>
        <generalsetting:label styleClass="desc" key="sysAnnounceForm.empName"/>
        <html:errors property="empName"/>
        <html:text property="empName" styleId="empName" styleClass="text medium"/>

    </li>

    <li>
        <generalsetting:label styleClass="desc" key="sysAnnounceForm.ext"/>
        <html:errors property="ext"/>
        <html:text property="ext" styleId="ext" styleClass="text medium"/>

    </li>

    <li>
        <generalsetting:label styleClass="desc" key="sysAnnounceForm.timestamp"/>
        <html:errors property="timestamp"/>
        <html:text property="timestamp" styleId="timestamp" styleClass="text medium"/>

    </li>

    <li>
        <generalsetting:label styleClass="desc" key="sysAnnounceForm.digest"/>
        <html:errors property="digest"/>
        <html:text property="digest" styleId="digest" styleClass="text medium"/>

    </li>

    <li>
        <generalsetting:label styleClass="desc" key="sysAnnounceForm.content"/>
        <html:errors property="content"/>
        <html:textarea property="content" styleId="content" styleClass="text medium" rows="5" cols="80" onkeypress="return ( this.value.length < 1000 );"/>

    </li>

    <li class="buttonBar bottom">
        <html:submit styleClass="button" property="method.save" onclick="bCancel=false">
            <fmt:message key="button.save"/>
        </html:submit>

        <html:submit styleClass="button" property="method.delete" onclick="bCancel=true; return confirmDelete('SysAnnounce')">
            <fmt:message key="button.delete"/>
        </html:submit>

        <html:cancel styleClass="button" onclick="bCancel=true">
            <fmt:message key="button.cancel"/>
        </html:cancel>
    </li>
</ul>
</html:form>

<script type="text/javascript">
    Form.focusFirstElement($("sysAnnounceForm"));
</script>

<html:javascript formName="sysAnnounceForm" cdata="false" dynamicJavascript="true" staticJavascript="false"/>
<script type="text/javascript" src="<html:rewrite page="/scripts/validator.jsp"/>"></script>
